package cn.lijiajia3515.cairo.auth.config.security;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.annotation.Order;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.web.SecurityFilterChain;

/**
 * 资源服务器 配置
 */
@Configuration(proxyBeanMethods = false)
public class DefaultSecurityConfig {

	/**
	 * 默认 security 配置
	 *
	 * @param http http
	 * @return filter chain 配置
	 * @throws Exception e
	 */
	// @Bean
	// @Order(1000)
	// SecurityFilterChain defaultCairoSecurity(HttpSecurity http) throws Exception {
	// 	http
	// 		.antMatcher("/**")
	// 		.authorizeRequests(authorizeRequests ->
	// 			authorizeRequests.anyRequest().authenticated()
	// 		)
	//
	// 		.csrf().disable()
	//
	// 		.cors().and()
	//
	// 		.exceptionHandling(c -> {
	//
	// 		});
	// 	return http.build();
	// }

}
